/*
 * Copyright (c) gitee.com/jiandong001.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */

import hilog from '@ohos.hilog';

import { Responder } from './Responder';
import { RequestHandler } from './RequestHandler';

export abstract class NotificationOnlyHandler implements RequestHandler {
  private static readonly TAG = "NotificationOnlyHandler";

  public onRequest(params?: Object, responder?: Responder): void {
    responder.error("Request is not supported");
    hilog.error(0x0, NotificationOnlyHandler.TAG, "Request is not supported");
  }

  public abstract onNotification(params?: Object): void;
}
